//
//  HOBaseReportViewController.h
//  微度报修
//
//  Created by foguo-mac-1 on 6/15/16.
//  Copyright © 2016 WeiDu. All rights reserved.
//

#import "HOMediaViewController.h"
#import "HOEditView.h"
#import "HOUploadImageView.h"
#import "HODepartmentEntity.h"
#import "HOFaultCategoryEntity.h"
#import "HORecordView.h"
#import "HOAreaEntity.h"
#import "HOTakePhotoMgr.h"
#import "HORepairerEntity.h"
#import "HOReportLocationViewController.h"
#import "HOReportDetailEntity.h"
#import "HOHybridTypeViewController.h"

@interface HOBaseReportViewController : HOMediaViewController<HOReportLocationViewControllerDelegate, HOHybridTypeViewControllerDelegate>
@property(nonatomic, retain)HODepartmentEntity *selectedDepartmentEntity;
@property(nonatomic, retain)HODepartmentEntity *selectedSubDepartmentEntity;
@property(nonatomic, retain)HOEditView 		*reportDescEditView;

@property(nonatomic, assign)BOOL isReturnFromDeptmentList;
@property(nonatomic, retain)HOAreaEntity *selectedFirstAreaEntity;
@property(nonatomic, retain)HOAreaEntity *selectedSecondAreaEntity;
@property(nonatomic, retain)HOAreaEntity *selectedThirdAreaEntity;

@property(nonatomic, retain)HOFaultCategoryEntity *selectedFaultGategoryEntity;
@property(nonatomic, retain)HOFaultCategoryEntity *selectedSubFaultGategoryEntity;
@property(nonatomic, retain)HORepairerEntity *hopeHandler;

- (UITableViewCell *)tableView:(UITableView *)tableView cellForTakePhotoRowAtIndexPath:(NSIndexPath *)indexPath;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForQuickTakePhotoRowAtIndexPath:(NSIndexPath *)indexPath;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForPatrolRowAtIndexPath:(NSIndexPath *)indexPath;
- (UITableViewCell *)tableView:(UITableView *)tableView cellForOrderDetailRowAtIndexPath:(NSIndexPath *)indexPath;
- (void)initBaseData;
- (void)didSelectForDepartmentRowAtIndexPath:(NSIndexPath *)indexPath;
- (BOOL)isSelectFaultType:(UIButton *)btn;
- (void)didSubmitReport;
- (CGFloat)getPhotoViewHeight;
- (void)submit;


- (void)initReportDepartment;
- (void)initReportAreaFromLocal;
- (void)saveReportAreaIntoLocal;
- (void)saveReportTypeIntoLocal;

- (NSString *)getSelectArea;
- (NSString *)getSelectAreaName;

- (NSString *)getSelectTypeNames;
- (NSString *)getSelectTypeIds;
@end
